/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/24 17:10:51
 */
Ext.define('Monkey.view.permission.PermissionModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.vm-permission',

    data: {
        name:'',
        permission:'',
        description:'',
        id: 0,
        isAdd: false
    },


    setModelData: function (data) {
        this.data.id = data.id;
        this.data.name=data.name;
        this.data.permission=data.permission;
        this.data.description=data.description;
    }
});